// DatabaseInfo.h: interface for the DatabaseInfo class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DATABASEINFO_H__7AE25187_D7BF_47E3_8447_1DCE2125A377__INCLUDED_)
#define AFX_DATABASEINFO_H__7AE25187_D7BF_47E3_8447_1DCE2125A377__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DatabaseElement.h"

namespace PDMS
{
	namespace PDMSDBIF
	{
		class DllExport DatabaseInfo : public DatabaseElement 
		{
			DECLARE_REGISTER_MAP( DatabaseInfo );
		public:
			DatabaseInfo();
			virtual ~DatabaseInfo();
		
		public:
			unsigned long GetVersion();
			unsigned long GetWorldID();
			unsigned long GetDBID();
			unsigned long GetMaxElementID();
			void SetMaxElementID( unsigned long lID );
			void SetWorldID( unsigned long lID );
			virtual UESoft::ErrorStatus Close();
			virtual UESoft::ErrorStatus Update();

		protected:
			virtual StdString GetOpenSQL( const StdString& strCondition );
		};
	}
}

#endif // !defined(AFX_DATABASEINFO_H__7AE25187_D7BF_47E3_8447_1DCE2125A377__INCLUDED_)
